package cn.huiyunche.base.service.enums;

/**
 * 用户车辆审核状态枚举
 *
 * @author houjianhui
 */
public enum TruckAuditStatusEnum {
    NOT_SUBMIT(0, "未认证"),
    AUDIT_CENTER(10, "认证中"),
    AUDIT_NOT_PASS(20, "认证未通过"),
    AUDIT_PASS(30, "已认证");

    private final int value;
    private final String text;

    TruckAuditStatusEnum(int value, String text) {
        this.value = value;
        this.text = text;
    }

    public int getValue() {
        return value;
    }

    public String getText() {
        return text;
    }

    public static TruckAuditStatusEnum getByValue(int value) {
        for (TruckAuditStatusEnum temp : TruckAuditStatusEnum.values()) {
            if (value == temp.getValue()) {
                return temp;
            }
        }
        return null;
    }
}
